//
//  CTVRateMediaController.h
//  Channltv
//
//  Created by Bruno Keymolen on 19/09/07.
//  Copyright 2007 channl.tv. All rights reserved.
//

#import <Cocoa/Cocoa.h>
#import "CTVClip.h"

@class CTVRateMenuElement;


/*
 * CTVRateMediaController
 */
@interface CTVRateMediaController : BRMediaMenuController {
	NSMutableArray* m_menuElements;
	CTVClip* m_clip;
	BRImageControl* m_image;
	float m_menuheight;
}

- (id) initWithScene: (BRRenderScene*)scene andClip:(CTVClip*)clip;
- (void) dealloc;
- (long) itemCount;
- (id<BRMenuItemLayer>) itemForRow: (long) row;
- (NSString *) titleForRow: (long) row;
- (long) rowForTitle: (NSString *) title;
- (void) itemSelected: (long) row;
- (id<BRMediaPreviewController>) previewControllerForItem: (long) item;
-(void)rateIt:(CTVRateMenuElement*)menuElement;
-(void)dontRate:(CTVRateMenuElement*)menuElement;


- (id)popAnimation;
- (id)pushAnimation;
- (void)activate;
- (void)willLoseFocus;
- (void)willRegainFocus;
- (void)willDeactivate;
- (void)deactivate;
- (BOOL)fadeLayerIn;
- (void)setDeletterboxAssetArtwork:(BOOL)fp8;
- (id)layer;

//- (void)setFrame:(NSRect)frame;
//- (NSRect)frame;


-(void)_layout;

@end



/*
 * CTVRateMenuElement
 */
@interface CTVRateMenuElement : NSObject{
	NSString* m_title;
	float m_rate;
	SEL m_function;
}
-(id)init;
-(void)dealloc;
-(NSString*)title;
-(float)rate;
-(void)setTitle:(NSString*)title;
-(void)setRate:(float)rate;
-(void)setFunction:(SEL)function;
-(SEL)function;

@end
